home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / callback.001 / callback~ / callback / lib / dbase / dbase.h < prev    next >
C/C++ Source or Header  |  1996-07-22  |  962b  |  37 lines

  1. #ifndef _dbase_H_
  2. #define _dbase_H_
  3.  
  4. #include <stdio.h>
  5.  
  6. typedef enum
  7. {
  8.     the_statefile,
  9.     the_enablefile,
  10.     the_callbackfile,
  11.     the_disablefile,
  12.     the_activefile,
  13.     the_modemfile,
  14.     sizeof_the_file_enum,
  15. } THE_FILE_ENUM_;
  16.  
  17. FILE *xfopen(char *name, char *mode);
  18. int getstate(int *state, unsigned *userid); /* -2: expiry, force enable     */
  19.                                             /* -1: no state file, waiting   */
  20.                                             /*  0: states exhaused  */
  21.                                             /* >0: retry            */
  22. unsigned get_maxage();
  23. void set_maxage(char *max);
  24. void make_filenames(char *ttyline);
  25. char *modemfile();
  26. void update_cbstate(char *line);
  27. void enable_state();
  28. void make_configfile();
  29. void setcallback(int uid, int dest);
  30. void load(THE_FILE_ENUM_ the_source);
  31. char *getfile(THE_FILE_ENUM_ ftype);
  32. void active_files();
  33. void states();
  34. void assign_filenames(char *line);
  35.  
  36. #endif  _dbase_H_
  37.